<div class="content">
    <!--- Bread Crumbs Menu -->
    <div class="breadLine">
        <ul class="breadcrumb">
            <li><a href="/">Admin</a> <span class="divider">></span></li>
            <li class="active"><a href="/">User</a> <span class="divider">></span></li>     
            <li class="active"><?php echo Config::get_page(); ?></li>
        </ul>
    </div>

   <div class="workplace">

        <div class="row-fluid">
            <div class="span12">
                <div class="head clearfix">
                    <div class="isw-calendar"></div>
                        <h1><?php echo Config::get_page(); ?></h1>
                    </div>
                    <div class="row-fluid" id="save">
                        <div class="span12">
                            <div class="widget">
                                <div class="head dark">
                                    <div class="icon title_icon"><i class="fa fa-user"></i></div>
                                    <h2>User Profile</h2>
                                </div>
                                <form id="add_user" class="formular" method="POST" action="/ajax/users?action=create_user&type=add" enctype="multipart/form-data">
                                    <div class="block-fluid">
                                    <?php $auth = Auth::getAuth('current_user'); ?> 
                                        <div class="span6">
                                            <span class="top title"><h4>User Information:</h4></span>
                                                <div class="row-form">
                                                    <div class="span3">
                                                        <div class="image">
                                                            <img src="/images/avatar/avatar.png" class="img-file-<?php echo md5(md5($auth['id'])); ?> img-polaroid" width="50" height="50">
                                                        </div>
                                                    </div>
                                                    <div class="span7">
                                                        <div class="input-append file" style="margin-top: 20px;">
                                                            
                                                            <input type="file" name="file" id="user_<?php echo md5(md5($auth['id'])); ?>" class="upload" data-loc="img-file-<?php echo md5(md5($auth['id'])); ?>">
                                                            <input type="text">
                                                            <a class="btn">Browse</a>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row-form">
                                                    <div class="span3">First Name:*</div>
                                                    <div class="span9"><input type="text" name="first_name" class="validate[required]" placeholder="Enter your first name"></div>
                                                </div>
                                                <div class="row-form">
                                                    <div class="span3">Last Name:*</div>
                                                    <div class="span9"><input type="text" name="last_name" class="validate[required]" placeholder="Enter your last name"></div>
                                                </div>
                                                <div class="row-form">
                                                    <div class="span3">Email:*</div>
                                                    <div class="span9"><input type="text" name="email" class="validate[required,custom[email]]" placeholder="enter your email"></div>
                                                </div>
                                                <div class="row-form">
                                                    <div class="span3">Login / Username:*</div>
                                                    <div class="span9"><input type="text" name="username" class="validate[required,maxSize[8]]" placeholder="enter your preferred login"></div>
                                                </div>
                                                
                                                <div class="row-form" style="height: 63px;">
                                                </div>
                                            </form>
                                        </div>
                                        <div class="span6">
                                            <span class="top title"><h4>Parameters:</h4></span>
                                                <div class="row-form">
                                                    <div class="span3">Access Role:*</div>
                                                    <div class="span9">
                                                        <select name="access_role" id="select_role" class="select_role validate[required]">
                                                            <?php
                                                                $db = new Database();
                                                                $role_fs = new Role_Functions();
                                                                echo $role_fs->load_roles($db,"val");
                                                            ?>                                                                     
                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="row-form">
                                                    <div class="span3">Department Unit:</div>
                                                    <div class="span9">
                                                        <select name="department_unit" id="chosen_department" class="select_department">
                                                            <option value="">Select Role First</option>                                                                       
                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="row-form">
                                                    <div class="span3">Brand Category:</div>
                                                    <div class="span9">
                                                        <select name="brand_category" id="chosen_brand_category">
                                                            <option value="">Select Role or Department Unit First</option>                                                                    
                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="row-form">
                                                    <div class="span3">Active:</div>
                                                    <div class="span9">
                                                        <div class="checker hover"><span class="checked"><input type="checkbox" checked="checked" name="set_active"  value="1"></span></div>
                                                    </div>
                                                </div>
                                                <!--<div class="row-form">
                                                    <div class="span3">Receive e-mails:</div>
                                                    <div class="span9">
                                                        <div class="checker hover"><span class="checked"><input type="checkbox" checked="checked" name="recieve_email"  value="1"></span></div>
                                                    </div>
                                                </div>-->
                                                <div class="row-form" style="height: 52px;">
                                                </div>
                                                <div class="toolbar bottom TAR">
                                                    <button class="btn btn-info" type="button" onclick="$('#add_user').validationEngine('hide');">Hide prompts</button>
                                                    <input type="submit" class="btn btn-primary" value="Add User" />
                                                </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                        
                    </div>
                    
                </div>
            </div>    
        </div>

   </div>

</div> 